package controller;

import java.rmi.RemoteException;
import java.util.List;

import javax.xml.bind.ValidationException;

import business.BusinessDelegate;
import dto.OrdenCompraDTO;
import dto.ProovedorDTO;
import dto.SucursalDTO;

public class AdministradorProveedores {

	private static AdministradorProveedores instance = null;

	private AdministradorProveedores() {

	}

	public static AdministradorProveedores getInstance() {
		if (instance == null)
			return new AdministradorProveedores();
		else
			return instance;
	}

	public List<ProovedorDTO> getProveedoresDTO() throws RemoteException,
			ValidationException {

		return BusinessDelegate.getInstance().getSistema()
				.getProveedoresDTO();

	}

}
